]> git.neil.brown.name Git - wiggle.git/commitdiff
Add endian.h back to config.h
authorNeil Brown <neilb@suse.de>
Sat, 12 May 2012 05:37:08 +0000 (15:37 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 May 2012 05:37:08 +0000 (15:37 +1000)
It turns out we do need it after all - but only include it if we
really do need it.

Signed-off-by: NeilBrown <neilb@suse.de>
config.h

index 2f362546724ce04276959114d8f502405ca0894b..0109c4ae75d69b5e3b6692ff8a7fe78ed84a0cfa 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,6 +1,9 @@
 
 /* Includes and defines for ccan files */
 
+#if !defined(LITTLE_ENDIAN) && !defined(BIG_ENDIAN)
+ #include <endian.h>
+#endif
 #ifdef LITTLE_ENDIAN
  #define HAVE_LITTLE_ENDIAN 1
  #define HAVE_BIG_ENDIAN 0